Integrand size = 24, antiderivative size = 92 \[ \int \frac {3-x^2}{\sqrt {3-x^2-x^4}} \, dx=-\sqrt {\frac {1}{2} \left (1+\sqrt {13}\right )} E\left (\arcsin \left (\sqrt {\frac {2}{-1+\sqrt {13}}} x\right )|\frac {1}{6} \left (-7+\sqrt {13}\right )\right )+\sqrt {5+2 \sqrt {13}} \operatorname {EllipticF}\left (\arcsin \left (\sqrt {\frac {2}{-1+\sqrt {13}}} x\right ),\frac {1}{6} \left (-7+\sqrt {13}\right )\right ) \]
-1/2*EllipticE(x*2^(1/2)/(-1+13^(1/2))^(1/2),1/6*I*39^(1/2)-1/6*I*3^(1/2)) *(2+2*13^(1/2))^(1/2)+EllipticF(x*2^(1/2)/(-1+13^(1/2))^(1/2),1/6*I*39^(1/ 2)-1/6*I*3^(1/2))*(5+2*13^(1/2))^(1/2)
Result contains complex when optimal does not.
Time = 10.10 (sec) , antiderivative size = 107, normalized size of antiderivative = 1.16 \[ \int \frac {3-x^2}{\sqrt {3-x^2-x^4}} \, dx=-\frac {i \left (\left (-1+\sqrt {13}\right ) E\left (i \text {arcsinh}\left (\sqrt {\frac {2}{1+\sqrt {13}}} x\right )|-\frac {7}{6}-\frac {\sqrt {13}}{6}\right )-\left (-7+\sqrt {13}\right ) \operatorname {EllipticF}\left (i \text {arcsinh}\left (\sqrt {\frac {2}{1+\sqrt {13}}} x\right ),-\frac {7}{6}-\frac {\sqrt {13}}{6}\right )\right )}{\sqrt {2 \left (-1+\sqrt {13}\right )}} \]
((-I)*((-1 + Sqrt[13])*EllipticE[I*ArcSinh[Sqrt[2/(1 + Sqrt[13])]*x], -7/6 - Sqrt[13]/6] - (-7 + Sqrt[13])*EllipticF[I*ArcSinh[Sqrt[2/(1 + Sqrt[13]) ]*x], -7/6 - Sqrt[13]/6]))/Sqrt[2*(-1 + Sqrt[13])]
Time = 0.28 (sec) , antiderivative size = 106, normalized size of antiderivative = 1.15, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {1494, 399, 321, 327}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {3-x^2}{\sqrt {-x^4-x^2+3}} \, dx\) |
\(\Big \downarrow \) 1494 |
\(\displaystyle 2 \int \frac {3-x^2}{\sqrt {-2 x^2+\sqrt {13}-1} \sqrt {2 x^2+\sqrt {13}+1}}dx\) |
\(\Big \downarrow \) 399 |
\(\displaystyle 2 \left (\frac {1}{2} \left (7+\sqrt {13}\right ) \int \frac {1}{\sqrt {-2 x^2+\sqrt {13}-1} \sqrt {2 x^2+\sqrt {13}+1}}dx-\frac {1}{2} \int \frac {\sqrt {2 x^2+\sqrt {13}+1}}{\sqrt {-2 x^2+\sqrt {13}-1}}dx\right )\) |
\(\Big \downarrow \) 321 |
\(\displaystyle 2 \left (\frac {\left (7+\sqrt {13}\right ) \operatorname {EllipticF}\left (\arcsin \left (\sqrt {\frac {2}{-1+\sqrt {13}}} x\right ),\frac {1}{6} \left (-7+\sqrt {13}\right )\right )}{2 \sqrt {2 \left (1+\sqrt {13}\right )}}-\frac {1}{2} \int \frac {\sqrt {2 x^2+\sqrt {13}+1}}{\sqrt {-2 x^2+\sqrt {13}-1}}dx\right )\) |
\(\Big \downarrow \) 327 |
\(\displaystyle 2 \left (\frac {\left (7+\sqrt {13}\right ) \operatorname {EllipticF}\left (\arcsin \left (\sqrt {\frac {2}{-1+\sqrt {13}}} x\right ),\frac {1}{6} \left (-7+\sqrt {13}\right )\right )}{2 \sqrt {2 \left (1+\sqrt {13}\right )}}-\frac {1}{2} \sqrt {\frac {1}{2} \left (1+\sqrt {13}\right )} E\left (\arcsin \left (\sqrt {\frac {2}{-1+\sqrt {13}}} x\right )|\frac {1}{6} \left (-7+\sqrt {13}\right )\right )\right )\) |
2*(-1/2*(Sqrt[(1 + Sqrt[13])/2]*EllipticE[ArcSin[Sqrt[2/(-1 + Sqrt[13])]*x ], (-7 + Sqrt[13])/6]) + ((7 + Sqrt[13])*EllipticF[ArcSin[Sqrt[2/(-1 + Sqr t[13])]*x], (-7 + Sqrt[13])/6])/(2*Sqrt[2*(1 + Sqrt[13])]))
3.2.16.3.1 Defintions of rubi rules used
Int[1/(Sqrt[(a_) + (b_.)*(x_)^2]*Sqrt[(c_) + (d_.)*(x_)^2]), x_Symbol] :> S imp[(1/(Sqrt[a]*Sqrt[c]*Rt[-d/c, 2]))*EllipticF[ArcSin[Rt[-d/c, 2]*x], b*(c /(a*d))], x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] && GtQ[a, 0] && !(NegQ[b/a] && SimplerSqrtQ[-b/a, -d/c])
Int[Sqrt[(a_) + (b_.)*(x_)^2]/Sqrt[(c_) + (d_.)*(x_)^2], x_Symbol] :> Simp[ (Sqrt[a]/(Sqrt[c]*Rt[-d/c, 2]))*EllipticE[ArcSin[Rt[-d/c, 2]*x], b*(c/(a*d) )], x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] && GtQ[a, 0]
Int[((e_) + (f_.)*(x_)^2)/(Sqrt[(a_) + (b_.)*(x_)^2]*Sqrt[(c_) + (d_.)*(x_) ^2]), x_Symbol] :> Simp[f/b Int[Sqrt[a + b*x^2]/Sqrt[c + d*x^2], x], x] + Simp[(b*e - a*f)/b Int[1/(Sqrt[a + b*x^2]*Sqrt[c + d*x^2]), x], x] /; Fr eeQ[{a, b, c, d, e, f}, x] && !((PosQ[b/a] && PosQ[d/c]) || (NegQ[b/a] && (PosQ[d/c] || (GtQ[a, 0] && ( !GtQ[c, 0] || SimplerSqrtQ[-b/a, -d/c])))))
Int[((d_) + (e_.)*(x_)^2)/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbo l] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Simp[2*Sqrt[-c] Int[(d + e*x^2)/(Sqr t[b + q + 2*c*x^2]*Sqrt[-b + q - 2*c*x^2]), x], x]] /; FreeQ[{a, b, c, d, e }, x] && GtQ[b^2 - 4*a*c, 0] && LtQ[c, 0]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 203 vs. \(2 (74 ) = 148\).
Time = 2.18 (sec) , antiderivative size = 204, normalized size of antiderivative = 2.22
method | result | size |
default | \(\frac {18 \sqrt {1-\left (\frac {1}{6}+\frac {\sqrt {13}}{6}\right ) x^{2}}\, \sqrt {1-\left (\frac {1}{6}-\frac {\sqrt {13}}{6}\right ) x^{2}}\, F\left (\frac {x \sqrt {6+6 \sqrt {13}}}{6}, \frac {i \sqrt {39}}{6}-\frac {i \sqrt {3}}{6}\right )}{\sqrt {6+6 \sqrt {13}}\, \sqrt {-x^{4}-x^{2}+3}}+\frac {36 \sqrt {1-\left (\frac {1}{6}+\frac {\sqrt {13}}{6}\right ) x^{2}}\, \sqrt {1-\left (\frac {1}{6}-\frac {\sqrt {13}}{6}\right ) x^{2}}\, \left (F\left (\frac {x \sqrt {6+6 \sqrt {13}}}{6}, \frac {i \sqrt {39}}{6}-\frac {i \sqrt {3}}{6}\right )-E\left (\frac {x \sqrt {6+6 \sqrt {13}}}{6}, \frac {i \sqrt {39}}{6}-\frac {i \sqrt {3}}{6}\right )\right )}{\sqrt {6+6 \sqrt {13}}\, \sqrt {-x^{4}-x^{2}+3}\, \left (-1+\sqrt {13}\right )}\) | \(204\) |
elliptic | \(\frac {18 \sqrt {1-\left (\frac {1}{6}+\frac {\sqrt {13}}{6}\right ) x^{2}}\, \sqrt {1-\left (\frac {1}{6}-\frac {\sqrt {13}}{6}\right ) x^{2}}\, F\left (\frac {x \sqrt {6+6 \sqrt {13}}}{6}, \frac {i \sqrt {39}}{6}-\frac {i \sqrt {3}}{6}\right )}{\sqrt {6+6 \sqrt {13}}\, \sqrt {-x^{4}-x^{2}+3}}+\frac {36 \sqrt {1-\left (\frac {1}{6}+\frac {\sqrt {13}}{6}\right ) x^{2}}\, \sqrt {1-\left (\frac {1}{6}-\frac {\sqrt {13}}{6}\right ) x^{2}}\, \left (F\left (\frac {x \sqrt {6+6 \sqrt {13}}}{6}, \frac {i \sqrt {39}}{6}-\frac {i \sqrt {3}}{6}\right )-E\left (\frac {x \sqrt {6+6 \sqrt {13}}}{6}, \frac {i \sqrt {39}}{6}-\frac {i \sqrt {3}}{6}\right )\right )}{\sqrt {6+6 \sqrt {13}}\, \sqrt {-x^{4}-x^{2}+3}\, \left (-1+\sqrt {13}\right )}\) | \(204\) |
18/(6+6*13^(1/2))^(1/2)*(1-(1/6+1/6*13^(1/2))*x^2)^(1/2)*(1-(1/6-1/6*13^(1 /2))*x^2)^(1/2)/(-x^4-x^2+3)^(1/2)*EllipticF(1/6*x*(6+6*13^(1/2))^(1/2),1/ 6*I*39^(1/2)-1/6*I*3^(1/2))+36/(6+6*13^(1/2))^(1/2)*(1-(1/6+1/6*13^(1/2))* x^2)^(1/2)*(1-(1/6-1/6*13^(1/2))*x^2)^(1/2)/(-x^4-x^2+3)^(1/2)/(-1+13^(1/2 ))*(EllipticF(1/6*x*(6+6*13^(1/2))^(1/2),1/6*I*39^(1/2)-1/6*I*3^(1/2))-Ell ipticE(1/6*x*(6+6*13^(1/2))^(1/2),1/6*I*39^(1/2)-1/6*I*3^(1/2)))
Time = 0.11 (sec) , antiderivative size = 107, normalized size of antiderivative = 1.16 \[ \int \frac {3-x^2}{\sqrt {3-x^2-x^4}} \, dx=\frac {2 i \, \sqrt {2} x \sqrt {\sqrt {13} - 1} F(\arcsin \left (\frac {\sqrt {2} \sqrt {\sqrt {13} - 1}}{2 \, x}\right )\,|\,-\frac {1}{6} \, \sqrt {13} - \frac {7}{6}) + {\left (i \, \sqrt {13} \sqrt {2} x - i \, \sqrt {2} x\right )} \sqrt {\sqrt {13} - 1} E(\arcsin \left (\frac {\sqrt {2} \sqrt {\sqrt {13} - 1}}{2 \, x}\right )\,|\,-\frac {1}{6} \, \sqrt {13} - \frac {7}{6}) + 4 \, \sqrt {-x^{4} - x^{2} + 3}}{4 \, x} \]
1/4*(2*I*sqrt(2)*x*sqrt(sqrt(13) - 1)*elliptic_f(arcsin(1/2*sqrt(2)*sqrt(s qrt(13) - 1)/x), -1/6*sqrt(13) - 7/6) + (I*sqrt(13)*sqrt(2)*x - I*sqrt(2)* x)*sqrt(sqrt(13) - 1)*elliptic_e(arcsin(1/2*sqrt(2)*sqrt(sqrt(13) - 1)/x), -1/6*sqrt(13) - 7/6) + 4*sqrt(-x^4 - x^2 + 3))/x
\[ \int \frac {3-x^2}{\sqrt {3-x^2-x^4}} \, dx=- \int \frac {x^{2}}{\sqrt {- x^{4} - x^{2} + 3}}\, dx - \int \left (- \frac {3}{\sqrt {- x^{4} - x^{2} + 3}}\right )\, dx \]
\[ \int \frac {3-x^2}{\sqrt {3-x^2-x^4}} \, dx=\int { -\frac {x^{2} - 3}{\sqrt {-x^{4} - x^{2} + 3}} \,d x } \]
\[ \int \frac {3-x^2}{\sqrt {3-x^2-x^4}} \, dx=\int { -\frac {x^{2} - 3}{\sqrt {-x^{4} - x^{2} + 3}} \,d x } \]
Timed out. \[ \int \frac {3-x^2}{\sqrt {3-x^2-x^4}} \, dx=\int -\frac {x^2-3}{\sqrt {-x^4-x^2+3}} \,d x \]